package com.xhtranslate.service;

import com.xhtranslate.common.vo.ResponseEnum;
import com.xhtranslate.common.vo.ResponseVO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuxuhuang
 * @version 1.0
 * @package com.xhtranslate.service
 * @date 2022/11/21 23:17:06
 * @description 异常返回控制器
 */
@RestController
public class ThrowReturnController {
    @RequestMapping(value = "overCreditReturn")
    public ResponseVO overCreditReturn() {
        return ResponseVO.exception(ResponseEnum.OVERCREDITLIMIT);
    }
}
